From: | Craig Hutchison |
Date: | 10 Sep 2001 at 09:33:34 |
Subject: | Re: (unknown) |
G'day Alexander,
On 09-Sep-01, you wrote:
a> To make the script more general and user configurable I tried to put
a> the ftp-String into a string variable at the top of the program:
a> OPTIONS RESULTS
a> FtpString =
a> 'something-online2534:gv#8576@ftp.something-online.de/webcampic.jpg'
a> and later in the script
a> ADDRESS COMMAND
a> DO 3 UNTIL RC=0 /* repeat 3 times in case of an error */
a> PutClient FtpString
a> END
a> According to Snoopdos that does the same as above, but that does not
a> work! MiamiDX goes online, nothing happens and 20 seconds later is
a> goes offline again. Sometimes (but very seldom) it works, but most the
a> time it does not work! The command above works everytime...
PutClient itself is rather fussy when it comes to timing.
I use it in several scripts, like the example below.
Address Command 'C:PutClient L='||LocOut||'
'||UserName||':'||PassWd||'@'||Site||'/'||RemOut||'/'file
(all on a single line) Notice that I've assigned variables in the
example because the same script connects to three different FTP
sites, each with different usernames, passwords and of course
outbound filenames.
I'd suggest you use something other than PutClient to force your TCP
stack online. Have you tried simply telling Miami to dial up through
ARexx?
If ~SHOW('P','MIAMI.1') then do
Mi_Up = 0
Do UNTIL Mi_Up = 1
Address Command 'C:Run >NIL: Miami:MiamiDX'
Call DELAY(50)
If SHOW('P','MIAMI.1') then Mi_Up = 1
End
End
Address MIAMI.1 ; IsOnLine /* see if Miami's online */
If RC=0 then do
OnLine /* if not, do it now! */
Call DELAY(200)
IsOnLine
If RC=1 then say 'Success!'
Else do
Say 'Miami Online failed'
EXIT 20
End
End
Else Say 'Miami was already online...'
Cache Ya,
Craig.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->
ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/